﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<link rel="stylesheet" href="../../Content/galleriaAlbum/prettyPhoto.css" type="text/css" media="screen" charset="utf-8" />
<script type="text/javascript" src="../../Scripts/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="../../Scripts/jquery.prettyPhoto.js"></script>
<script type="text/javascript">
    $(function () {
        $("a[rel^='prettyPhoto']").prettyPhoto({
                theme : "facebook"
            });
    });
</script>

        <% List<MvcSite.Models.Foto> listaFoto = (List<MvcSite.Models.Foto>)ViewData["ListFoto"];
           int i = 0;
           foreach (MvcSite.Models.Foto foto in listaFoto)
           { 
        %>

            <% if (i >= 10)
               {
                   i = 0;%>
                <br />
                <%} %>
            <a class="imgLink" href="<%= foto.Path %>" rel="prettyPhoto[pp_gal]" title="<%= foto.Nome %>" >
                <img src="<%= foto.Path %>" height="60" alt="<%= foto.Nome %>" />
            </a>

        <%
               i++;
           } %>
